Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question service tests completed and passing #90

Merged
merged 3 commits into from
Apr 6, 2024
Merged

Conversation

ChristianFN2
Copy link
Contributor

I corrected the test cases and some minor bugs there were in question-service.js.

Regarding #84, I thought initially that tests were not passing due to the async tests behaving as concurrent users and my approach of answer storing not being adequate for it, but once I corrected those mistakes now they all pass.

I have to investigate more but it is possible that the global variable 'correctImage' in question-service.js is unique per session, so there should be no collision between different users in reallity and question-service should thus be complete (That is what I infered from the results of the async tests, which I ran multiple times).

@ChristianFN2 ChristianFN2 changed the base branch from master to develop April 5, 2024 16:06
@ChristianFN2
Copy link
Contributor Author

I tested it and the concurrency problem was still happening, so I solved it making some modifications to the answer endpoint.

@adriiglz adriiglz merged commit dd89602 into develop Apr 6, 2024
1 check failed
@adriiglz
Copy link
Contributor

adriiglz commented Apr 6, 2024

Thanks for solving it, Christian

@ChristianFN2 ChristianFN2 deleted the christian-tests branch April 7, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants